begintownscript;

variables;
 
 short choice;

body;
 
beginstate INIT_STATE;
 break;
 
beginstate EXIT_STATE;
 break;
 
beginstate START_STATE;
 break;
 
beginstate 10;
 reset_dialog();
 
add_dialog_str(0,"There is a weird dark portal here. Would you like to enter it?",0);
 
add_dialog_choice(0,"No.");
 
add_dialog_choice(1,"Enter dark portal.");
 if (run_dialog(1) == 2)
 { play_sound(10);
  
change_outdoor_location(2,1,42,5);
 move_to_new_town(4,11,14);
 }
 else
 block_entry(1);
 break;
 
beginstate 11;
 if (get_flag(50,11) != 2)
 { message_dialog("The runes ahead of you keep you from passing.","");
 block_entry(1);
 }
 break;
 
beginstate 12;
 if (get_flag(0,15) == 0){ reset_dialog();
  add_dialog_str(0,"When you come around the corner, you notice an odd teleporter.",0);
 
add_dialog_str(1,"It is not like any you have ever seen. Also, when you look through it you see the same place, yet it is different...",0);
 
add_dialog_choice(0,"OK");
 
set_flag(0,15,1);
 } break;
  